import sys
import getopt
from xaj import xaj

if __name__ == '__main__':
    config_file = ""
    opts, args = getopt.getopt(sys.argv[1:], '-c:', ['config='])
    contain_config = False
    for opt_name, opt_value in opts:
        if opt_name in ('-c', '--config'):
            contain_config = True
            config_file = opt_value
            break
    if not contain_config:
        print("main.py -c <config file(.yml)>")
    else:
        # 入口函数 todo
        pass